package com.chagee.store.operation.api.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * 打烊工单验收方式
 * @Author : hk
 * @Date : 2024/9/13
 */

@Getter
@AllArgsConstructor
public enum OrderAcceptanceTypeEnum {

	//系统
	SYSTEM("SYSTEM", "系统"),

	//手动
	HAND("HAND", "手动"),

	;

	private final String type;
	private final String desc;


	public static OrderAcceptanceTypeEnum queryByType(String type) {
		for (OrderAcceptanceTypeEnum value : values()) {
			if (Objects.equals(type, value.getType())) {
				return value;
			}
		}
		return null;
	}
}
